package lab02.test25;

import java.util.Scanner;

public class Test25 {
    public static void main(String[] args) {
        System.out.println("请输入两个数：");
        Scanner sc=new Scanner(System.in);
        double a=Integer.parseInt(sc.next());
        double b=Integer.parseInt(sc.next());

       try{
            System.out.println(a/b);
        }catch (ArithmeticException e){
            System.out.println("除数为0");
        }finally {
           System.out.println("这是一个除法");

       }
    }
}
